package com.songlanyun.modules.kqbank.controller;

import com.songlanyun.common.supplychainapi.goods.model.GoodsPageResult;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.advconfig.entity.AdvConfig;
import com.songlanyun.modules.kqbank.entity.KqBankSign;
import com.songlanyun.modules.kqbank.service.KqBankSignService;
import com.songlanyun.modules.user.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/kqbank")
public class KqBankSignController extends AbstractController {


    @Autowired
    private KqBankSignService kqBankSignService;
    /**
     * 获取信息
     */
    @GetMapping("/info")
    public R load(@RequestParam("cardType") String cardType,@RequestParam("bankCode") String bankCode){

        List<KqBankSign> kqBankSignList = kqBankSignService.getKqBankSign(cardType,bankCode);
        return R.ok().put("data", kqBankSignList);
    }

}
